#CXX := 	gccrec g++-code-assist
CXX := 	g++
TARGET:= run

D_BIN := 	./
D_SRC := 	./
CPP_SRC := main.cpp

CPP_OBJS := $(CPP_SRC:%.cpp=%.o)

_OBJS		:= $(CPP_OBJS)
OBJS		:= $(patsubst %$, $(D_BIN)/%, $(_OBJS))

INCLUDES := 

#LDFLAGS	:= -lGlut -lGL -lglu
LDFLAGS	:= -framework OpenGL -framework GLUT -framework Cocoa
CFLAGS	:= -I./



all: $(D_BIN)/$(TARGET)

# TARGET COMPILATION
$(D_BIN)/$(TARGET): $(OBJS)
	$(CXX) -o $@ $^ $(LDFLAGS)

# COMPILATION
$(D_BIN)/%.o: $(D_SRC)/%.cpp
	$(CXX) -c -o $@ $< $(CFLAGS)

clean:
	rm $(OBJS)
